package com.jfinal.complex.tablesplit.model;

import java.util.HashMap;

public class CrossVar {

	private String tableName;
	private HashMap<String,String> value;

	public CrossVar() {
		this.tableName = null;
		this.value = new HashMap<String,String>();
	}

	public String getTableName() {
		return this.tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public void addColAndValue(String columnName, String strValues) {
		this.value.put(columnName, strValues);
	}

	public String getValueByCol(String columnName) {
		return ((String) this.value.get(columnName));
	}

	public HashMap<String,String> getColsAndValues() {
		return this.value;
	}
}
